// 每个api.js 引入request.js 抛出的myRequest 方法

import {
	post,
	get,
	put,
	upload,
	dele,
} from "@/utils/request.js"



// GET 登录
export const login = (data) => {
	return post('/api/login/login/', data)
}

// GET 统计数据
export const total = (data) => {
	return get('/api/index/data/', data)
}

// GET 明细
export const detail = (data) => {
	return get('/api/index/detail/', data)
}

// GET 人员推广明细
export const worker_detail = (data) => {
	return get('/api/index/worker_detail/', data)
}

// GET 分享二维码链接
export const share_url = (data) => {
	return get('/api/index/share_url/', data)
}

// POST 添加推广人员
export const add_worker = (data) => {
	return post('/api/index/add_worker/', data)
}

// GET 配置接口
export const config = (data) => {
	return get('/api/index/config/', data)
}

// GET 版本号
export const version = (data) => {
	return get('/api/login/version/', data)
}

// GET 员工列表
export const worker_list = (data) => {
	return get('/api/index/worker_list/', data)
}